package edu.xidian.onlinedocument.websocket;

import lombok.AllArgsConstructor;
import lombok.Data;
import org.springframework.web.socket.WebSocketSession;

@Data
@AllArgsConstructor
public class EditorSocketKey {

    private final Integer userId;
    private final Integer docId;
    private final String userNum;

    /*
    @Data注解会自动添加hashCode方法，因此可以不用手写
    否则用在Map里当成key的类一定要手动写hashCode方法
    public int hashCode() {}
     */
}
